<template>
    <div>
        <el-text class="mx-1" type="primary">当前版本 {{ nowAppVersion }}</el-text>
        <el-button type="primary" @click="restartApp">重启程序</el-button>
    </div>
</template>

<script setup>
import { useAppState } from '@renderer/stores/app-state.js'
import { storeToRefs } from 'pinia'
import { useAppUpdater } from '@renderer/stores/app-updater.js'
const { nowAppVersion } = storeToRefs(useAppUpdater())
const restartApp = () => {
    useAppState().restartApp()
}
</script>
<style></style>
